package com.yuandian.management.utils;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 组装需要展示的字段(需求886-20220510)
 */
public class DisplayFieldUtil {


	public static final Map<String, Object> bpmCustomMap = new LinkedHashMap<>();
	public static final Map<String, Object> apmCustomMap = new LinkedHashMap<>();
	public static final Map<String, Object> detailCustomMap = new LinkedHashMap<>();
	public static final Map<String, Object> stepCustomMap = new LinkedHashMap<>();

	/**
	 * 步骤查询页面字段
	 */
	static {
		stepCustomMap.put("systemName","系统名称");
		stepCustomMap.put("businessName","业务名称");
		stepCustomMap.put("stepType","步骤类型");
		stepCustomMap.put("stepName","步骤名称");
		stepCustomMap.put("businessHall","单位编码");
		stepCustomMap.put("businessHallName","单位");
		stepCustomMap.put("operatorId","操作员编码");
		stepCustomMap.put("operatorName","操作员");
		stepCustomMap.put("menuId","菜单编码");
		stepCustomMap.put("menuName","菜单名称");
		stepCustomMap.put("pageLabelId","页签");
		stepCustomMap.put("pageSize","页面大小(条)");
		stepCustomMap.put("buttonId","按钮");
		stepCustomMap.put("buttonName","按钮名称");
		stepCustomMap.put("dealState","响应状态");
		stepCustomMap.put("isCompletion","完整性");
		stepCustomMap.put("userIdentify","用户标识");
		stepCustomMap.put("customResCode","自定义返回码");
		stepCustomMap.put("alarmCount","告警数");
		stepCustomMap.put("startTime","开始时间");
		stepCustomMap.put("endTime","结束时间");
		stepCustomMap.put("dealTime","办理时长");
	}

	/**
	 * 详单查询页面字段
	 */
	static {
		detailCustomMap.put("businessName","业务名称");
		detailCustomMap.put("customResCode","自定义返回码");
		detailCustomMap.put("userIdentify","用户标识");
		detailCustomMap.put("startTime","开始时间");
		detailCustomMap.put("endTime","结束时间");
		detailCustomMap.put("dealState","业务状态");
		detailCustomMap.put("completionState","完整性");
		detailCustomMap.put("dealTime","办理时长");
		detailCustomMap.put("clientFreeTime","客户端空闲时长");
		detailCustomMap.put("alarmCount","告警量");
	}

	/**
	 * 详单查询页面字段
	 */
	static {
		detailCustomMap.put("businessName","业务名称");
		detailCustomMap.put("customResCode","自定义返回码");
		detailCustomMap.put("userIdentify","用户标识");
		detailCustomMap.put("startTime","开始时间");
		detailCustomMap.put("endTime","结束时间");
		detailCustomMap.put("dealState","业务状态");
		detailCustomMap.put("completionState","完整性");
		detailCustomMap.put("dealTime","办理时长");
		detailCustomMap.put("clientFreeTime","客户端空闲时长");
		detailCustomMap.put("alarmCount","告警量");
	}

	/**
	 * 基础告警查询页面 BPM tab字段
	 */
	static {
		bpmCustomMap.put("alarmObject","告警对象");
		bpmCustomMap.put("stepName","所属步骤");
		bpmCustomMap.put("businessName","所属业务");
		bpmCustomMap.put("segmentName","所属网端");
		bpmCustomMap.put("systemName","所属系统");
		bpmCustomMap.put("alarmLevelName","告警级别");
		bpmCustomMap.put("alarmContext","告警现象");
		bpmCustomMap.put("alarmIndicatorName","告警类型");
		bpmCustomMap.put("alarmTriggerTime","告警时间");
		bpmCustomMap.put("requestIpPort","请求IP端口");
		bpmCustomMap.put("responseIpPort","响应IP端口");
		bpmCustomMap.put("requestBytes","请求大小");
		bpmCustomMap.put("responseBytes","响应大小");
	}

	/**
	 * 基础告警查询页面 APM tab字段
	 */
	static {
		apmCustomMap.put("alarmObject","告警对象");
		apmCustomMap.put("segmentName","所属网端");
		apmCustomMap.put("systemName","所属系统");
		apmCustomMap.put("alarmLevelName","告警级别");
		apmCustomMap.put("alarmContext","告警现象");
		apmCustomMap.put("alarmIndicatorName","告警类型");
		apmCustomMap.put("alarmTriggerTime","告警时间");
		apmCustomMap.put("requestIpPort","请求IP端口");
		apmCustomMap.put("responseIpPort","响应IP端口");
	}


}
